﻿<?xml version="1.0" encoding="utf-8" ?>
<AdoNetDataAccess connection="$DBConnection$" formatter="bizobjlist of FilterSortSaveInfo">
	<Sql>
		SELECT
		id,
		name
		FROM
		FilterSorts
		WHERE 
		(associatedId=@userId
		OR 
		associatedId=@companyId)
		AND  
		groupName=@groupName
			  

	</Sql>
	<Param name="userId" type="UniqueIdentifier" />
	<Param name="companyId" type="UniqueIdentifier" />
	<Param name="groupName" type="UnicodeVarChar" />
</AdoNetDataAccess>